// Create an Apex method in the controller that marks all comments as read for the  
    
// selected idea 
    
public class ViewIdeaController {

   private final String id = ApexPages.currentPage().getParameters().get('id');

   public ViewIdeaController(ApexPages.StandardController controller) {
                Ideas.markRead(id);
   }

}